package at.jku.se.pr.quickshopper.model;

import java.math.BigDecimal;

public class Article {
	
	/**
	 * EAN number of the article
	 */
	private long mEAN;
	
	/**
	 * name of the article
	 */
	private String mDescription;
	
	/**
	 * amount: how many items of this article
	 */
	private int mAmount;
	
	/**
	 * price of one article-item
	 */
	private BigDecimal mPrice;

	/**
	 * constructor which creates a new article
	 * @param mEAN
	 * @param mDescription
	 * @param mAmount
	 * @param mPrice
	 */
	public Article(long mEAN, String mDescription, int mAmount, BigDecimal mPrice) {
		super();
		this.setmEAN(mEAN);
		this.setmDescription(mDescription);
		this.setmAmount(mAmount);
		this.setmPrice(mPrice);
	}

	/**
	 * @return the mEAN
	 */
	public long getmEAN() {
		return mEAN;
	}

	/**
	 * @param mEAN the mEAN to set
	 */
	public void setmEAN(long mEAN) {
		this.mEAN = mEAN;
	}

	/**
	 * @return the mDescription
	 */
	public String getmDescription() {
		return mDescription;
	}

	/**
	 * @param mDescription the mDescription to set
	 */
	public void setmDescription(String mDescription) {
		this.mDescription = mDescription;
	}

	/**
	 * @return the mAmount
	 */
	public int getmAmount() {
		return mAmount;
	}

	/**
	 * @param mAmount the mAmount to set
	 */
	public void setmAmount(int mAmount) {
		this.mAmount = mAmount;
	}

	/**
	 * @return the mPrice
	 */
	public BigDecimal getmPrice() {
		return mPrice;
	}

	/**
	 * @param mPrice the mPrice to set
	 */
	public void setmPrice(BigDecimal mPrice) {
		this.mPrice = mPrice;
	}

}
